package com.example.service.impl;

import com.example.entity.Vip;
import com.example.mapper.VipMapper;
import com.example.service.VipService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.vo.Result;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * <p>
 * 会员表 服务实现类
 * </p>
 *
 * @author chengtaoxie
 * @since 2023-10-23
 */
@Service
public class VipServiceImpl extends ServiceImpl<VipMapper, Vip> implements VipService {

    @Resource
    private VipMapper vipMapper;
    /**
     * 增加vip
     * @param vip
     */
    @Override
    public Result addVip(Vip vip) {
        vipMapper.insert(vip);
        return Result.ok().message("vip信息添加成功！");
    }
}
